#!/bin/sh
if [ "$1" = "upload" ];then
  echo upload
    echo $RANDOM >> README.md
else
  echo build
    npm run build:prod
fi
git add -A > /dev/null
git commit -m "$1" > /dev/null
git push origin master
scp -r dist/* root@115.28.186.27:/usr/share/nginx/html/xyd
